<div class="accountinfo">
    <?php if( $oAdmin->getEmployee() && $oAdmin->getEmployee()->getPhoto() ): ?>
    <img src="<?php echo $oAdmin->getEmployee()->getPhotoPath('ico')?>" />
    <?php else: ?>
    <img alt="Avatar" src="/images/cms/avatar.png">
    <?php endif; ?>
    <div class="info">
        <h3><?php echo $oAdmin->getFullName()?></h3>
        <?php if( $oAdmin->getEmployee() && $oAdmin->getEmployee()->getEmail() ):?>
        <a href="mailto:<?php echo $oAdmin->getEmployee()->getEmail()?>">
            <small><?php echo $oAdmin->getEmployee()->getEmail()?></small>
        </a>
        <?php endif;?>
        <p> 
            <a href="<?php echo url_for('@logout')?>">Выйти</a>
        </p>
    </div><!-- info -->
</div><!-- accountinfo -->